package com.ymm.system.api.utils;

public enum CargoStatusEnum {
    /**
     * 待支付
     */
    WAIT_FOR_PAY(3, "待支付"),
    /**
     * 上架中
     */
    ON_SHLFE(0, "上架中"),
    /**
     * 已下架
     */
    OFF_SHLFE(1, "已下架"),
    /**
     * 已接单
     */
    HOLDING(2, "已接单");

    private Integer code;
    private String message;

    CargoStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String toString() {
        return "OrderStatusEnum{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
